<template>
  <div class="discounts-header">
    <span class="title">优惠活动</span>
    <span>共收录{{companyNum}}家娱乐城，{{discountsNum}}条优惠信息</span>
    <div class="release-wrap">
      <div class="release-btn"><i class="huobo huobo-release"></i>发布</div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'DiscountsHeader',
  props: {
    companyNum: {
      type: Number,
      default: 0
    },
    discountsNum: {
      type: Number,
      default: 0
    }
  }
};
</script>

<style lang="less" scoped>
  @import '../../../less/global.less';
  .discounts-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding-left: 1rem;
    height: 50px;
    border: 1px solid #ddd;
    color: #666;
    background-color: #eee;
    .title {
      margin-right: 1rem;
      font-size: 2rem;
      color: green;
    }
    .release-wrap {
      position: fixed;
      top: 5rem;
      right: 1rem;
      .release-btn {
        width: 6rem;
        height: 6rem;
        line-height: 6rem;
        text-align: center;
        border-radius: 50%;
        background-color: @mainBgColor;
        color: #fff;
      }
    }
  }
</style>
